﻿using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using System.Windows.Forms;

namespace CourseSelectionSystem
{
    public partial class FormStudent : Form
    {
        public FormStudent()
        {
            InitializeComponent();

            //获取当前时间
            label1.Text = DateTime.Now.ToString("yyyy-MM-dd HH:mm:ss");

            //启用计时器
            timer1.Start();
        }

        /// <summary>
        /// 计时器实时更新时间
        /// </summary>
        /// <param name="sender"></param>
        /// <param name="e"></param>
        private void timer1_Tick(object sender, EventArgs e)
        {
            label1.Text = DateTime.Now.ToString("yyyy-MM-dd HH:mm:ss");
        }

       
        private void FormMain_Load(object sender, EventArgs e)
        {
            // TODO: 这行代码将数据加载到表“courseSelectionSystem2024DataSet.Student”中。您可以根据需要移动或移除它。
            this.studentTableAdapter.Fill(this.courseSelectionSystem2024DataSet.Student);

        }

        private void FormStudent_FormClosed(object sender, FormClosedEventArgs e)
        {
           //结束整个程序
           Application.Exit();
        }

        private void dataGridView1_CellContentClick(object sender, DataGridViewCellEventArgs e)
        {

        }

        
    }
}
